<template>
  <div>
    <h3>自组建：  {{ count }}  <button @click="$emit('qwe', 1)">+1</button> </h3>
    <h3>自组建：  {{ count }}  <button @click="handleClick(1)">+1</button> </h3>
    <h3>自组建：  {{ count }}  <button @click="handleClick(10)">+10</button> </h3>
  </div>
</template>


<script>
export default {
  props: {
    count: {
      type: Number
    }
  },
  methods: {
    handleClick(value) {
      this.$emit('qwe', value)
    }
  }
}
</script>